package com.ruoyi.screeningDate.service.impl;

import com.ruoyi.firefighter.domain.FirefighterInfo;
import com.ruoyi.ifmPost.domain.IfmPost;
import com.ruoyi.screeningDate.addomain.DynamicInputVo;
import com.ruoyi.screeningDate.addomain.IfmPostA;
import com.ruoyi.screeningDate.addomain.PostAccount;
import com.ruoyi.screeningDate.mapper.PostAccountMapper;
import com.ruoyi.screeningDate.service.PostAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class PostAccountServiceImpl implements PostAccountService {
    @Autowired
    private PostAccountMapper postAccountMapper;

    @Override
    public List<PostAccount> selectProgramNameAndUserId(IfmPost ifmPost) {
        return postAccountMapper.selectProgramNameAndUserId(ifmPost);
    }

    @Override
    public List<IfmPostA> selectPostNameAndProgramName(IfmPost ifmPost) {
        return postAccountMapper.selectPostNameAndProgramName(ifmPost);
    }

    @Override
    public void addPostNameAndProgramName(IfmPostA ifmPost) {
         postAccountMapper.addPostNameAndProgramName(ifmPost);
    }

    @Override
    public void updatePostNameAndProgramName(IfmPostA ifmPost) {
         postAccountMapper.updatePostNameAndProgramName(ifmPost);
    }

    @Override
    public void deletetPostNameAndProgramName(IfmPostA ifmPost) {
         postAccountMapper.deletetPostNameAndProgramName(ifmPost);
    }

    @Override
    public List<DynamicInputVo> dynamicInput(FirefighterInfo ifmPost) {
        return  postAccountMapper.dynamicInput(ifmPost);
    }


}
